#ifndef OBJ3D_H
#define OBJ3D_H

#include <GL/glew.h>
#include <string>
#include "Soup.h"

/**
@author F. Aubert
*/

class Obj3d
{
  public:
    Obj3d();
    virtual ~Obj3d();

    void read(std::string nom);
    void draw();

    void initBuffer();
    void drawBuffer();
    void drawNormal();
  protected:
  private:
    prog3d::Soup *_obj;
    GLuint _vertexBuffer;
    GLuint _indiceBuffer;
    GLuint _normalBuffer;
};

#endif // OBJ3D_H
